import React from 'react';
require('./style.less');

class NotFound extends React.Component {
    constructor(props) {
        super(props);
    }
    render() {
        return (
            <div> 
                <div className="error-container">
                    <div className="error-wrap">
                        <div>
                            <div className="error-number">404 not found</div>
                            <div className="error-text">抱歉，您所查找的页面不存在</div>
                            {
                                // eslint-disable-next-line
                                this.props.preUrl && 
                                <a href={this.props.preUrl}>返回上一个页面</a>
                            }
                        </div>        
                    </div>
                </div>    
            </div>
        )
    }
}

export default NotFound;